/*!
 * @Author: CPS
 * @Date: 2021-02-14 08:27:07
 * @Last Modified by: CPS
 * @Last Modified time: 2021-02-14 18:12:36
 * @Projectname test
 * @file_path D:\CPS\MyProject\yys-vuetify\vuetify-yys\src\renderer\YYSEventHub.js
 * @Filename YYSEventHub.js
 *  全局事件监听对象
 */
"use strict";

import Vue from "vue";

const eventHub = new Vue();

export default {
  $on(...event) {
    eventHub.$on(...event);
  },
  $off(...event) {
    eventHub.$off(...event);
  },
  $once(...event) {
    eventHub.$once(...event);
  },
  $emit(...event) {
    eventHub.$emit(...event);
  },
};
